package com.rongda.deploy.operation.deploy.controller.page;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Create By WeiBin on 2020/10/26 10:20
 *
 * @author WB
 */
@Controller
public class PageController {

    @RequestMapping("/")
    public String index() {
        return "index";
    }

    @RequestMapping("/index")
    public String index1() {
        return "index";
    }

    @RequestMapping("/page/app")
    public String toApp(Long id, Model model) {
        model.addAttribute("id", id);
        return "app";
    }
}
